<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>center-=block不定宽inline居中</title>
    <style>
        .div_wrap {
            display: inline;
            text-align: center;
        }

        .div_wrap ul {
            list-style: none;
        }
    </style>
</head>
<body>
<div class="div_wrap">
    <ul>
        <li>这里是第一行</li>
        <li>这里是第二行</li>
        <li>这里是第三行</li>
        <li>这里是第四行</li>
    </ul>
</div>
</body>
</html>